<?php
namespace com\mvc\orm;
class DB{
	public static function getInstance(){
		$type = DRIVER_DB;
		if (!defined('DRIVER_PDO') || $type==DRIVER_MYSQL){
			$singleton = \com\mvc\orm\dao\MysqlDB::singleton();
		}else if ($type==DRIVER_PDO){
			$singleton = \com\mvc\orm\dao\PDODB::singleton();
			//$result = $singleton->getDB();	
		}else if ($type==DRIVER_MYSQLI){
			$singleton = \com\mvc\orm\dao\MysqliDB::singleton();		
		}
		return $singleton;
	}
}